import React from 'react';

export default function ApprovalStatus({ applyType }) {
  if (applyType === 'not_prepared' || applyType === '待编制') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(39, 97, 255, 1)' }} />
        待编制
      </span>
    );
  }
  if (applyType === 'organization' || applyType === '编制中') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(39, 97, 255, 1)' }} />
        编制中
      </span>
    );
  }

  if (applyType === 'examined_approved' || applyType === '待提交审批') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(251, 173, 21, 1)' }} />
        待提交审批
      </span>
    );
  }
  if (applyType === 'approved' || applyType === '审批中') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(250, 173, 21, 1)' }} />
        审批中
      </span>
    );
  }
  if (applyType === 'failure_approved' || applyType === '审批已驳回') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(255, 0, 0, 1)' }} />
        审批已驳回
      </span>
    );
  }
  if (applyType === 'success_approved' || applyType === '审批通过') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(165, 214, 63, 1)' }} />
        审批通过
      </span>
    );
  }
  if (applyType === 'sys_generation' || applyType === '系统生成') {
    return (
      <span>
        <i className="dots" style={{ background: 'rgba(82, 196, 26, 1)' }} />
        系统生成
      </span>
    );
  }
  return null;
}
